#ifndef MCITEM_H
#define MCITEM_H

#include <QtQuick3D/QQuick3DGeometry>
#include <QtQmlIntegration>
class MCItemGeometry : public QQuick3DGeometry
{
    Q_OBJECT
    QML_ELEMENT
    Q_DISABLE_COPY(MCItemGeometry)

    Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged)

public:
    explicit MCItemGeometry(QQuick3DObject *parent = nullptr);
    ~MCItemGeometry() override;

    void setSource(QString source);
    QString source();
signals:
    void sourceChanged(QString);
private:
    void update();
    QString m_source;
};

#endif // MCITEM_H
